<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class Home extends CI_Controller {

    /**
     * Index Page for this controller.
     */
    public function index()
    {
        //Loading the general views
        $this->load->view('general/header.php');
        $this->load->view('general/navbar.php');
        //Validate logged in
        if($this->session->userdata('username')){
            $this->lang->load('login');
            $this->load->view('login.php');
        } else {
	        $this->lang->load('home');
            $this->load->view('home.php');
        }
        $this->lang->load('footer');
        $this->load->view('general/footer.php');
    }
}

/* End of file welcome.php */
/* Location: ./application/controllers/welcome.php */